import 'package:flutter/material.dart';

class MyListViewTwo extends StatelessWidget {
  const MyListViewTwo({super.key});

  @override
  Widget build(BuildContext context) {
    return ListView.builder(
      itemBuilder: (context, index) {
        return _listItem();
      },
      itemCount: 30,
    );
  }

  _listItem() {
    return Container(
      padding: const EdgeInsets.all(10),
      height: 80,
      child: Row(
        children: [
          Image.network(
              'https://yanxuan-item.nosdn.127.net/72e734dd1a4d35ce650afebdaa600b57.png',
              width: 80,
              height: 80,
              fit: BoxFit.cover),
          const SizedBox(width: 10),
          const Expanded(
            child: Text(
              '美妆效果嘎嘎不卡粉末面刷, 美妆效果嘎嘎不卡粉末面刷, 美妆效果嘎嘎不卡粉末面刷',
              maxLines: 2,
              overflow: TextOverflow.ellipsis,
              style: TextStyle(fontSize: 16),
            ),
          ),
          const SizedBox(width: 10),
          // 图标
          const Icon(
            Icons.arrow_forward_ios,
            size: 20,
          ),
        ],
      ),
    );
  }
}
